package soucesystemtest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by pc-gong on 2017/2/22.
 */
//@Component
public class CDPlayer implements MediaPlayer{

    private CompactDisc cd;

    //@Autowired
    public CDPlayer(CompactDisc cd) {
        this.cd = cd;
    }

    public void play(int trackNumber) {
        cd.paly(trackNumber);
    }
}
